package com.game.model;

import java.util.ArrayList;
import java.util.List;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class Player {
    private Long id;
    private String nickname;
    private boolean ready;
    private int score;
    private List<Card> cards = new ArrayList<>();
    private HandType frontHand;
    private HandType middleHand;
    private HandType backHand;

    public enum HandType {
        HIGH_CARD,
        PAIR,
        TWO_PAIR,
        THREE_OF_A_KIND,
        STRAIGHT,
        FLUSH,
        FULL_HOUSE,
        FOUR_OF_A_KIND,
        STRAIGHT_FLUSH,
        ROYAL_FLUSH
    }

    public Player(String nickname) {
        this.nickname = nickname;
        this.ready = false;
        this.score = 0;
        this.cards = new ArrayList<>();
    }
} 